package com.own.component.device.base;

import com.own.component.device.property.DeviceProperty;
import lombok.Getter;

import javax.servlet.http.HttpServletRequest;

/**
 * RequestClientManager
 *
 * @author chenxueli
 * @date 2024-03-15 11:31:45
 */
@Getter
public abstract class RequestDeviceManager {

    protected String deviceIdField;

    public RequestDeviceManager(DeviceProperty property) {
        this.deviceIdField = property.getDeviceIdField();
    }

    /**
     * 获取设备的信息
     *
     * @param request 请求内容
     * @return 设备信息
     */
    public abstract String client(HttpServletRequest request);

}
